@use './variables.scss';
@use "./mixins.scss";

// 业务页面几乎都应该在根元素上挂载 class="app-container"，以保持页面统一美观
.app-container {
  padding: 20px;
}

html {
  height: 100%;

  // 灰色模式
  &.grey-mode {
    filter: grayscale(1);
  }

  // 色弱模式
  &.color-weakness {
    filter: invert(0.8);
  }
}

body {
  height: 100%;
  color: var(--body-text-color);
  background-color: var(--body-bg-color);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial,
    sans-serif;
  margin: 0;
  @extend %scrollbar;
}

#app {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a,
a:focus,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}